/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package constants;

/**
 *
 * @author Bari
 */
public class Consts {

    //SMS commands
    public static final String RES_ON = "HOT";
    public static final String RES_OFF = "OFF";
    //Http parameter names
    public static final String PARAM_SIGNATURE = "Signature";
    public static final String PARAM_MESSAGE = "json";
    //JSON key words
    public static final String MSG_REQUEST_RESOURCES = "MSG_REQUEST_RESOURCES";
    public static final String MSG_START_RESOURCE = "MSG_START_RESOURCE";
    //RSA key paths
    public static final String PATH_PRIVATE_KEY = "resources/privk.key";
    public static final String PATH_PUBLIC_KEY = "resources/pubk.key";
    //Json keys
    public static final String JSON_ERROR = "JSON_ERROR";
    //JSON response message codes
    public static final int RESPONSE_RESULT = 1;
    public static final int RESPONSE_CONFIRM = 2;
    public static final int RESPONSE_ERROR = -1;
    //Resouce states
    public static final int RESOURCE_ACTIVE = 0;
    public static final int RESOURCE_NOT_ACTIVE = 1;
    public static final int RESOUCE_NOT_AVAILABLE = -1;
    //Resouce ownership
    public static final int RESOURCE_OWNER = 0;
    public static final int RESOURCE_NOT_OWNER = 1;
    //Resource start modes
    public static final int RESOURCE_START = 0;
    public static final int RESOURCE_RESTART = 1;
    public static final String JSON_MESSAGE_CODE = "JSON_MESSAGE_CODE";
    public static final String JSON_ARRAY = "JSON_ARRAY";
    //RESOURCE JSON KEYS
    public static final String CLIENT_TIME = "CLIENT_TIME";
    public static final String RESOURCE_ID = "RESOURCE_ID";
    public static final String RESOURCE_NAME = "RESOURCE_NAME";
    public static final String RESOURCE_DESCRIPTION = "RESOURCE_DESCRIPTION";
    public static final String RESOURCE_TEL = "RESOURCE_TEL";
    public static final String RESOURCE_STATE = "RESOURCE_STATE";
    public static final String RESOURCE_OWNERSHIP = "RESOURCE_OWNERSHIP";
    public static final String RESOURCE_ACTIVATION_LENGTH = "RESOURCE_ACTIVATION_LENGTH";
    public static final String RESOURCE_START_MODE = "RESOURCE_START_MODE";
    //RESOURCE CATEGORY JSON KEYS
    public static final String RCATEGORY_ID = "RCATEGORY_ID";
    public static final String RCATEGORY_NAME = "RCATEGORY_NAME";
    //ACTIVATE JSON ID
    public static final String RESERVATION_LENGTH = "RESERVATION_LENGTH";
    //USER ID
    public static final String USER_ID = "USER_ID";
    //SERVER STATE
    public static final String SERVER_TIME = "SERVER_TIME";
    //Log events
    public static final String LOG_START = "START";
    public static final String LOG_STOP = "STOP";
    public static final String LOG_RESTART = "RESTART";
}
